﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeFile="QuanlyTu.aspx.cs" Inherits="Admin_QuanlyTu" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<table>
        <tr>
            <td class="style1">
                <asp:Label ID="lblThongbao" runat="server" Text=""></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td class="style1">
                
                Từ:<asp:DropDownList ID="ddlTu" runat="server" 
                    onselectedindexchanged="ddlTu_SelectedIndexChanged" AutoPostBack="True">
                </asp:DropDownList>
            </td>
            
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style1">
                <asp:LinkButton ID="lbtnThemmoi" runat="server" onclick="lbtnThemmoi_Click">Thêm mới</asp:LinkButton> | 
            </td>
        </tr>
        <tr>
            <td class="style1">
                
                    <table>
                        <tr>
                            <td>Tên từ:</td>
                            <td>
                                <asp:TextBox ID="txtTu" runat="server" Width="160px" 
                                    ontextchanged="txtTu_TextChanged"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Nghĩa từ:
                            </td>
                            <td>
                                <asp:GridView ID="gvNghiatu" runat="server" AutoGenerateColumns="False" 
                                    CellPadding="4" ForeColor="#333333" GridLines="None" 
                                    onselectedindexchanging="gvNghiatu_SelectedIndexChanging" Width="155px">
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                    <Columns>
                                        <asp:TemplateField></asp:TemplateField>
                                        <asp:BoundField DataField="PK_iNghiatuID" HeaderText="ID" />
                                        <asp:BoundField DataField="sNoidung" HeaderText="Nội dung" />
                                        <asp:ButtonField Text="Sửa" CommandName="Select" />
                                    </Columns>
                                    <EditRowStyle BackColor="#999999" />
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                                </asp:GridView>
                            </td>

                        </tr>
                        <asp:Panel ID="pnEdit" runat="server" Visible="false">
                        <tr>
                            <td>Nội dung:</td>
                            <td>
                                <asp:TextBox ID="txtNghia" runat="server" Width="160px"></asp:TextBox>
                            </td>
                        </tr>
                         <tr>
                            <td colspan="2" align="right">
                                <asp:Button ID="btnLuu" runat="server" Text="Lưu" onclick="btnLuu_Click" OnClientClick="return confirm('Có chắc chắn thực hiện không?');" />
                                <asp:Button ID="btnBoqua" runat="server" Text="Bỏ qua" 
                                    onclick="btnBoqua_Click" />
                            </td>
                        </tr>
                        </asp:Panel>
                       
                    </table>
                
             </td>
        </tr>
    </table>
</asp:Content>

